<div id="mainLayout" fwa-layout-container="" data-main="true" class="full-height full-width">
	
	
	<div fwa-layout-box="center" data-padding="true">
		<div fwa-layout-container=""  fwa-layout-fullsize="true">
			<div fwa-layout-box="north" style="height:465px;" class="background-white">
                   <div class=" full-height full-width">
                       <div class="panel-body">
                         	<div class="row"  style="background-color: #f0f0f0;margin-top:-10px;">
								<div class="form-group col-xs-12 title" >
									<div style="width: 30%;float: left;" class="control-div text-right " >
											<label class="col-xs-4 control-div text-right"> 基础信息</label>
									</div>
								</div>
							</div>
							
							<div class="row" style="margin-top: 10px;">
								<div class="form-group col-xs-6" >
									<div class="col-xs-4 control-div text-right">
										<span class="red"> * </span>姓名:
									</div>
									<div class="col-xs-8">
										<input type="text" class="form-control" ng-blur="autoSearchInstitution($event)" required ng-model="doctorInfoDetail.name">
									</div>
								</div>
							
								<div class="form-group col-xs-6" >
									<div class="col-xs-4 control-div text-right">
									<span class="red"> * </span>性别:
									</div>
									<div class="col-xs-8">
										 <select  class="form-control" name = "sex"  ng-model="doctorInfoDetail.sex"
							                    ng-options="c.codeno as c.codename for c in communityService.dictionaryMap['sex']">
							                <option value="">---请选择---</option>
							            </select>
									</div>
								</div>
							</div>
							<div class="row" style="margin-top: 10px;">
								<div class="form-group col-xs-6" >
									<div class="col-xs-4 control-div text-right">
									<span class="red"> * </span>出生日期:
									</div>
									<div class="col-xs-8">
										<input ng-model="doctorInfoDetail.birthDate" class="form-control" fwa-datetime ng-change="inputChange()">
									</div>
								</div>
									<div class="form-group col-xs-6" >
										<div class="col-xs-4 control-div text-right">
										<span class="red"> * </span>人员分类:
										</div>
										<div class="col-xs-8">
											 <select  class="form-control"  name = "personType"  ng-model="doctorInfoDetail.personType"
								                    ng-options="c.codeno as c.codename for c in communityService.dictionaryMap['personTypeHos']">
								                <option value="">---请选择---</option>
								            </select>
										</div>
									</div>
							</div>
							<div class="row" style="margin-top: 10px;">
								<div class="form-group col-xs-6" >
					                  <div class="col-xs-4 control-div text-right">
					                      <span class="red"> * </span>证件类型:
					                  </div>
					               	 <div class="col-xs-8">
					                      <select  class="form-control" name = "certificateType" required ng-model="doctorInfoDetail.certificateType"
					                               ng-options="c.codeno as c.codename for c in communityService.dictionaryMap['id_type']">
					                          <option value="">---请选择---</option>
					                      </select>
					                  </div>
					              </div>
						
					              <div class="form-group col-xs-6" >
					                  <div class="col-xs-4 control-div text-right">
					                      <span class="red"> * </span>证件号:
					                  </div>
					                  <div class="col-xs-8">
					                      <input type="text" class="form-control" ng-blur="autoSearchInstitution($event)" required ng-model="doctorInfoDetail.certificateNo" >
					                  </div>
					              </div>
							</div>
							<div class="row" style="margin-top: 10px;">
								<div class="form-group col-xs-6" style="line-height: 34px;">
									<div class="col-xs-4 control-div text-right">
										<span class="red"> * </span>保险号:
									</div>
									<div class="col-xs-8">
									 <input class="form-control" name = "bednum"  required ng-model="doctorInfoDetail.insurancenum"  type="text">
									 </div>
								</div>
								
								<div class="form-group col-xs-6" >
									<div class="col-xs-4 control-div text-right">
									<span class="red"> * </span>所属科室:
									</div>
									<div class="col-xs-8">
										 <select  class="form-control" name = "departNo"  ng-model="doctorInfoDetail.departNo"
							                    ng-options="c.codeno as c.codename for c in communityService.dictionaryMap['cityDep']">
							                <option value="">---请选择---</option>
							            </select>
									</div>
								</div>
							</div>
							<div class="row" style="margin-top: 10px;">
								<div class="form-group col-xs-6" >
									<div class="col-xs-4 control-div text-right">
									<span class="red"> * </span>省科室:
									</div>
									<div class="col-xs-8">
										 <select  class="form-control" name = "departParentNo"  ng-model="doctorInfoDetail.departParentNo"
							                    ng-options="c.codeno as c.codename for c in communityService.dictionaryMap['provincialDep']">
							                <option value="">---请选择---</option>
							            </select>
									</div>
								</div>
								
								<div class="form-group col-xs-6" >
									<div class="col-xs-4 control-div text-right">
										固话:
									</div>
									<div class="col-xs-8">
										<input type="text" class="form-control" ng-blur="autoSearchInstitution($event)"  ng-model="doctorInfoDetail.contactPhone" >
									</div>
								</div>
							</div>
							<div class="row" style="margin-top: 10px;">
								<div class="form-group col-xs-6" >
									<div class="col-xs-4 control-div text-right">
									<span class="red"> * </span>手机:
									</div>
									<div class="col-xs-8">
										 <input type="text" class="form-control" ng-blur="autoSearchInstitution($event)"  ng-model="doctorInfoDetail.mobilePhone" >
									</div>
								</div>
							
				                <div class="form-group col-xs-6" >
				                    <div class="col-xs-4 control-div text-right">
				                        	资格名称:
				                    </div>
				                    <div class="col-xs-8">
				                        <input type="text" class="form-control" ng-blur="autoSearchInstitution($event)"  ng-model="doctorInfoDetail.qualifiedName"  >
				                    </div>
				                </div>
							</div>
							<div class="row" style="margin-top: 10px;">
								<div class="form-group col-xs-6" >
				                    <div class="col-xs-4 control-div text-right">
				                   	    有效期限:
				                    </div>
				                    <div class="col-xs-8">
						                 <div class="col-xs-6">
					                    	<input ng-model="doctorInfoDetail.startDate" class="form-control" fwa-datetime ng-change="inputChange()">
					                    </div>
					                    <div class="col-xs-6">
					                     	<input ng-model="doctorInfoDetail.endDate" class="form-control" fwa-datetime ng-change="inputChange()">
					                    </div>
				                    </div>
				                </div>
							
				                <div class="form-group col-xs-6" >
				                    <div class="col-xs-4 control-div text-right">
				                      	 培训证号:
				                    </div>
				                    <div class="col-xs-8">
				                        <input type="text" class="form-control" ng-blur="autoSearchInstitution($event)"  ng-model="doctorInfoDetail.trainingNo" >
				                    </div>
				                </div>
							</div>
							<div class="row" style="margin-top: 10px;">
							       <div class="form-group col-xs-6" >
					                    <div class="col-xs-4 control-div text-right">
					                        	<span class="red"> * </span>是否有效:
					                    </div>
					                    <div class="col-xs-8">
						                    <select  class="form-control" name = "isValid"  ng-model="doctorInfoDetail.isValid">
					                            <option value="">---请选择---</option>
					                            <option value="0">有效</option>
					                            <option value="1">无效</option>
						                    </select>
					                    </div>
					                </div>
					                
					               <div class="form-group col-xs-6" >
				                    <div class="col-xs-4 control-div text-right">
				                      	  医保服务状态:
				                    </div>
				                    <div class="col-xs-8">
					                    <select  class="form-control" name = "serviceStus"  ng-model="doctorInfoDetail.serviceStus">
					                        <option value="">---请选择---</option>
				                            <option value="0">有效</option>
				                            <option value="1">无效</option>
					                    </select>
				                    </div>
				                </div>
							</div>
                       </div>
                   </div>
			</div>
			
			
			<div fwa-layout-box="center" style="">
                   <div class="panel panel-default full-height full-width">
                       <div class="panel-body">
						<div class="row"  >
							<table  class="table fwa-table table-striped" >
								<thead>
									<tr>
										<th width="4%">
											<input type="checkbox" ng-model="checked" ng-change="checkInsuranceGrading(checked);">
										</th>
										<th width="24%" >
											<span>
												执业机构
											</span>
										</th>
										<th width="24%">
										<span>
												机构类别
											</span>
										</th>
										<th width="24%">
										<span>
												机构等级
											</span>
										</th>
										<th width="24%">
										<span>
												地址
											</span>
										</th>
									</tr>
								</thead>
								<tbody style="border-bottom: 1px solid #d0d0d0;">
									<tr ng-repeat="data in doctorInfoDetail.checkInstitutionRows">
										<td width="10%">
											<input type="checkbox" ng-model="data.checked" >
										</td>
										<td width="18%">
										<span ng-bind = "data.providerName"></span>
										</td>
										<td width="18%">
										<span ng-bind = "data.orgType"></span>
										</td>
										<td width="18%">
										<span ng-bind = "data.organizationType"></span>
										</td>
										<td width="18%">
										<span ng-bind = "data.hospitalLevel"></span>
										</td>
										<td width="18%">
										<span ng-bind = "data.fullAddress"></span>
										</td>
									</tr>
								</tbody>
							</table>
						</div>
                       </div>
                   </div>
			</div>
			
			
			<div fwa-layout-box="south" style="height:50px;">
                   <div class="panel panel-default full-height full-width">
                       <div class="panel-body">
                          	<div class="row  text-left" style="margin-top: 10px;">
								<button type="button" id="extractButton"
												class="btn btn-blue btn-sm" ng-click="addJobAddr();">新增</button> 
				  					<button type="button" id="extractButton"
												class="btn btn-blue btn-sm" ng-click="deleteJobAddr();">删除</button> 
				  			</div>
                       </div>
                   </div>
			</div>
		</div>
	</div>
	
	<div fwa-layout-box="east" style="background-color:#f0f0f0;width:400px;" data-padding="true">
           <div class="panel panel-default full-height full-width">
               <div class="panel-body">
                   	<div class="row"   style="margin-top: -10px;">
						<div class="form-group col-xs-12 title" >
							<div style="width: 40%;float: left;margin-top: 10px;" class="control-label text-right " >
									<label class="col-xs-4 control-label text-right">执业证</label>
							</div>
						</div>
					</div>
					<div class="row"   style="margin-top: 10px;">
						<div class="form-group col-xs-12">
							<div class="col-xs-4 control-label text-right">
								医生证号:
							</div>
							<div class="col-xs-8">
								<input class="form-control" name = "license"   ng-model="doctorInfoDetail.doctorLicense" type="text">
							</div>
						</div>
					</div>
					<div class="row"   style="margin-top: 10px;">
					<div class="form-group col-xs-12">
						<div class="col-xs-4 control-label text-right">
							执业范围:
						</div>
						<div class="col-xs-8">
							<input class="form-control" name = "license"   ng-model="doctorInfoDetail.practiceScope" type="text">
						</div>
					</div>
					</div>
					<div class="row"   style="margin-top: 10px;">
					<div class="form-group col-xs-12" >
						<div class="col-xs-4 control-label text-right">
							执业证号:
						</div>
						<div class="col-xs-8">
							<input type="text" class="form-control" ng-blur="autoSearchInstitution($event)" required ng-model="doctorInfoDetail.practiceLicense" >
						</div>
					</div>
					</div>
					<div class="row"  >
					<div class="form-group col-xs-12" >
						<div class="col-xs-4 control-label text-right">
						执业类别:
						</div>
						<div class="col-xs-8">
							 <select  class="form-control" name = "practiceScope" required ng-model="doctorInfoDetail.practiceType"
				                    ng-options="c.codeno as c.codename for c in communityService.dictionaryMap['workScope']">
				                    <option value="">---请选择---</option>
				            </select>
						</div>
					</div>
					</div>
					
					<div class="row"  >
						<div class="form-group col-xs-12 title" >
							<div style="width: 40%;float: left;margin-top: 10px;" class="control-label text-right " >
									<label class="col-xs-4 control-label text-right">资格证</label>
							</div>
						</div>
					</div>
					
					<div class="row" style="margin-top: 10px;">
						<div class="form-group col-xs-12">
						<div class="col-xs-4 control-label text-right">
							学历:
						</div>
						<div class="col-xs-8">
							<input class="form-control" name = "license"   ng-model="doctorInfoDetail.education" type="text">
						</div>
					</div>
					</div>
					<div class="row" style="margin-top: 10px;">
						<div class="form-group col-xs-12" >
							<div class="col-xs-4 control-label text-right">
								毕业学校:
							</div>
							<div class="col-xs-8">
								<input type="text" class="form-control" ng-blur="autoSearchInstitution($event)" required ng-model="doctorInfoDetail.school" >
							</div>
						</div>
					</div>
					
					<div class="row"  >
						<div class="form-group col-xs-12 title" >
							<div style="width: 40%;float: left;margin-top: 10px;" class="control-label text-right " >
									<label class="col-xs-4 control-label text-right">职称证</label>
							</div>
						</div>
					</div>
					
					<div class="row" style="margin-top: 10px;">
						        <div class="form-group col-xs-12" >
			                    <div class="col-xs-4 control-label text-right">
			                        	<span class="red"> * </span>资格级别:
			                    </div>
			                    <div class="col-xs-8">
			                         <select  class="form-control" name = "certificateType" required ng-model="doctorInfoDetail.qualifiedLevel"
			                                 ng-options="c.codeno as c.codename for c in communityService.dictionaryMap['qualifiedLev']">
			                            <option value="">---请选择---</option>
			                        </select>
			                    </div>
			                </div>
						</div>
						<div class="row" style="margin-top: 10px;">
		        			 <div class="form-group col-xs-12" >
			                    <div class="col-xs-4 control-label text-right">
			                        	<div class="row"><span class="red"> * </span>授予时间:</div>
			                    </div>
			                    <div class="col-xs-8">
			                        <input ng-model="doctorInfoDetail.qualifiedDate" class="form-control" fwa-datetime ng-change="inputChange()">
			                    </div>
			                </div>
							
		
					</div>
               </div>
           </div>
	</div>
	
	<div fwa-layout-box="south" style="background-color:#f0f0f0;height:150px;" data-padding="true">
           <div class="panel panel-default full-height full-width">
               <div class="panel-body">
                  <div class="row">
					<div class="col-xs-12" style="margin-top: 20px;">
					<div class="form-group col-xs-5">
					
					</div>
					<div class="form-group col-xs-2">
							<button type="button" id="extractButton"
										class="btn btn-blue btn-sm" ng-show="authority.add != 1"  ng-click="saveDoctor();">保存</button> 
						<button type="button" id="cancelButton"
										class="btn btn-blue btn-sm" ng-click="cancel();">取消</button> 
					</div>
					<div class="form-group col-xs-5">
					
					</div>
					</div>
				</div>
               </div>
           </div>
	</div>
</div>